package com.example.hao.animation_demo;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;

public class View2Activity extends AppCompatActivity {

    private ImageView iv_top;
    private ImageView icons;
    private ImageView next;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_view2);
        initView();
    }

    private void initView() {
        iv_top = findViewById(R.id.top);
        icons = findViewById(R.id.set_icons);
        next = findViewById(R.id.next);
        MyAnimationUtils.method(this,R.anim.anim_scale,iv_top);
        MyAnimationUtils.method(this,R.anim.anim_translate,next);
        MyAnimationUtils.method(this,R.anim.anim_scal_bounc,icons);
    }
}
